package com.yan.exception;

public class DataException extends Exception {

	private static final long serialVersionUID = 1L;
	private int code;

	public DataException() {
		super("请求超出设定的限制");
	}

	public DataException(String message) {
		super(message);
	}

	public DataException(int code, String message) {
		super(message);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

}
